Skip to content

fleet-proxy: pin explicit-allow for unadvertised dial ports (#13464) - #13475

Open
dezren39 wants to merge 1 commit into
mainfrom
felix/13464-proxy-port-membership
Open

dezren39 wants to merge 1 commit into
mainfrom
felix/13464-proxy-port-membership

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Closes #13464.

Triage decision (task 21379, lane oc-code-08): do_request explicitly ALLOWS any frame-valid u16 port, with the reason recorded in code — no services_map membership check at the dial site.

Why not refuse (from do_request's actual consumers, per #6583 (a)):

Enforcement: new dial_port() helper used by do_request + dial_port_passes_any_frame_valid_port_through test (absent→4799, table passthrough, 8080 and 65535 verbatim). Full fleet-proxy lib suite: 114 passed.

Evidence: task 21379 · issue #13464 · coordinated with #6582 / #6583(a)(b).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T16:48:48Z",
    "session_id": "ses_e5df6c39e70ffeI2YhyheGl4fx",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code-wt-oc08-13464",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code-wt-oc08-13464",
      "repo": "developing-today/code",
      "branch": "felix/13464-proxy-port-membership",
      "sha": "bcea651c9315f778afcefda620142750e5555146"
    },
    "auth_subject": "agent-next-23-local",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

do_request dials the frame-declared port verbatim via a named
dial_port helper: absent means the laptop-agent default, any
frame-valid u16 passes through with no services_map membership
check. Refusing unadvertised ports would break the deliberate
--service-port consumer (client.rs pins 8080); the #6582
contract holds via frame-boundary type/range validation
(#6516) plus token gating. Test pins the dial-site rule.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e61c7600-c2d9-4d97-93ad-1f1fbd7048dc
Commits

Reviewing files that changed from the base of the PR and between f3e85a4 and bcea651.

Files selected for processing: 1

  • pkgs/fleet/crates/fleet-proxy/src/serve.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T16:50:26.905451Z bcea651 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fleet-proxy do_request dials any client-named u16 port with no services_map membership check

1 participant